<div id="parkingSpaceCreateFeeAddModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
     aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-body">
                <h3 class="m-t-none m-b ">创建费用</h3>
                <div class="ibox-content">
                    <div>
                        <div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">收费范围</label>
                                <div class="col-sm-10">
                                    <select class="custom-select" v-model="parkingSpaceCreateFeeAddInfo.locationTypeCd" v-if="parkingSpaceCreateFeeAddInfo.isMore == true">
                                        <option selected disabled value="">必填，请选择收费范围</option>
                                        <option value="1000">小区</option>
                                        <option value="2000">停车场</option>
                                    </select>
                                    <input v-model="parkingSpaceCreateFeeAddInfo.locationTypeCdName" v-if="parkingSpaceCreateFeeAddInfo.isMore == false" disabled = "disabled" type="text" placeholder="必填，请填写收费范围"
                                           class="form-control">

                                </div>
                            </div>
                            <div class="form-group row" v-if="parkingSpaceCreateFeeAddInfo.locationTypeCd == '2000'">
                                <label class="col-sm-2 col-form-label">停车场</label>
                                <div class="col-sm-10">
                                    <select class="custom-select" v-model="parkingSpaceCreateFeeAddInfo.locationObjId" >
                                        <option selected disabled value="">必填，请选择停车场</option>
                                        <option v-for="(item,index) in parkingSpaceCreateFeeAddInfo.parkingAreas" :key="index"
                                                v-bind:value="item.paId">{{item.num}}号停车场
                                        </option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">费用类型</label>
                                <div class="col-sm-10">
                                    <select class="custom-select" v-model="parkingSpaceCreateFeeAddInfo.feeTypeCd" @change="_changeFeeTypeCd(parkingSpaceCreateFeeAddInfo.feeTypeCd)">
                                        <option selected disabled value="">必填，请选择费用类型</option>
                                        <option v-for="(item,index) in parkingSpaceCreateFeeAddInfo.feeTypeCds" :key="index"
                                                v-bind:value="item.statusCd">{{item.name}}
                                        </option>
                                    </select></div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">收费项目</label>
                                <div class="col-sm-10">
                                    <select class="custom-select" v-model="parkingSpaceCreateFeeAddInfo.configId">
                                        <option selected disabled value="">必填，请选择收费项目</option>
                                        <option v-for="(item,index) in parkingSpaceCreateFeeAddInfo.feeConfigs" :key="index"
                                                v-bind:value="item.configId">{{item.feeName}}
                                        </option>
                                    </select></div>
                            </div>
                        
                            <div class="form-group row" >
                                <label class="col-sm-2 col-form-label">车位状态</label>
                                <div class="col-sm-10">
                                    <select class="custom-select" v-model="parkingSpaceCreateFeeAddInfo.parkingSpaceState">
                                        <option selected disabled value="">必填，请选择车位状态</option>
                                        <option  value="S">已售</option>
                                        <option  value="H">已出租</option>
                                        <option  value="F">空闲</option>
                                    </select>
                                </div>
                            </div>
                            <div class="ibox-content">
                                <button class="btn btn-primary float-right" type="button"
                                        v-on:click="saveParkingSpaceCreateFeeInfo()"><i class="fa fa-check"></i>&nbsp;提交
                                </button>
                                <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
                                        data-dismiss="modal">取消
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
